package com.sinosoft.ptas.control.dto;

import java.io.Serializable;

import com.sinosoft.ptas.entity.ProjectCotegoryEntity;
import com.sinosoft.ptas.system.util.PtasObjectUtil;

/**
 * 工程类型传输类
 * @author lianWuJun
 * @time   2017年2月23日 上午11:17:18
 */
public class ProjectCotegoryData implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private String id;//项目编号
	private String name;//项目种类名称
	private String description;//项目种类描述
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
	/**
	 * 传输类转化成实体类
	 */
	public ProjectCotegoryEntity toEntity(){
		ProjectCotegoryEntity projectCotegoryEntity = new ProjectCotegoryEntity();
		PtasObjectUtil.oldToNew(projectCotegoryEntity, this, "serialVersionUID");
		return projectCotegoryEntity;
	}
	
	/**
	 * 实体类转化成传输类
	 */
	public void toProjectCotegoryData(ProjectCotegoryEntity projectCotegoryEntity){
		PtasObjectUtil.oldToNew(this, projectCotegoryEntity, "serialVersionUID");
	}
	
}
